export JAVA_HOME=/usr/lib/jvm/jre
export TC_INSTALL_DIR=/home/terracotta/terracotta/terracotta-3.4.0

if ps ax | grep -v grep | grep start-tc-server.sh > /dev/null
then
        echo "Terracotta Server is already running"
else
        $TC_INSTALL_DIR/bin/start-tc-server.sh -f /home/terracotta/zahra/tc-config.xml
fi
